﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EmailSendWizard
{
    public partial class EmailSendingWizard : Form
    {
        public EmailSendingWizard()
        {
            InitializeComponent();
        }

        private void buttonSend_Click(object sender, EventArgs e)
        {
            EmailSentAction sent = new EmailSentAction("smtp.gmail.com", "autofinacedatacapture@gmail.com", "Assignment", 587, true);
            sent.SendMail("AutoFinaceDataCapture@gmail.com", textEmailAddress.Text, textSubject.Text, textContext.Text);
        }
    }
}
